package com.yssoft.mapper.sales;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.yssoft.entity.core.TEnterprise;
import com.yssoft.entity.sales.TSalesOrder;

import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

public interface TSalesOrderMapper  extends Mapper<TSalesOrder> {

	List<Map<String, Object>> selectSaleOrderList(HashMap<String, Object> param);

    /**
     * 统计销售单数据
     *
     * @param enterpriseId
     * @return
     */
    int querySalesOrderCount(@Param("enterpriseId") Integer enterpriseId);

	Map<String, Object> getOne(Integer id);
    /**
    * @方法名: selectMonthGroupByByEntList
    * @创建人: 陈翼东
    * @时间: 18-6-14 下午3:37
    * @参数: [entList]
    * @返回值: java.util.List<com.yssoft.entity.sales.TSalesOrder>
    * @说明: 根据企业查询销售单，按照月份分组
    */
    List<Map<String,Object>> selectMonthGroupByByEntList(@Param("entList") List<TEnterprise> entList);
}